package com.bush.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;

import com.bush.mall.common.entity.Result;;
import com.bush.mall.product.entity.AttrEntity;

/**
 * 商品属性
 * @author RUN
 * @date 2022-11-28
 */
public interface AttrService extends IService<AttrEntity> {

    public static final String BEAN_ID = "mall.attrService";

    /**
     * 分页查询商品属性列表
     * @author RUN
     * @date 2022-11-28
     */
     Result queryForPage(Integer current,Integer size);


    /**
     * 创建商品属性表单对象
     * @author RUN
     * @date 2022-11-28
     */
     Result saveAttr(AttrEntity attr);


    /**
     * 修改商品属性表单对象
     * @author RUN
     * @date 2022-11-28
     */
     Result updateAttr(AttrEntity attr);

    /**
     * 删除指定ID的商品属性
     * @author RUN
     * @date 2022-11-28
     */
     Result deleteAttr(Long id);

}

